package com.ruoyi.web.controller.order.mapper;

import com.ruoyi.common.core.dao.BaseMapper;
import com.ruoyi.common.entity.DO.order.ShopOrderStatusDO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface IBackShopOrderStatusMapper extends BaseMapper<ShopOrderStatusDO> {
    @Update("UPDATE shop_order_status set shop_pay_status = #{payStatus} WHERE order_id = #{orderId}")
    int updateBackPayStatusByOrderId(@Param("orderId") Long orderId, @Param("payStatus") Integer payStatus);

    @Update("UPDATE shop_order_status set pay_status = #{payStatus} WHERE order_id = #{orderId}")
    int updatePayStatusByOrderId(@Param("orderId") Long orderId, @Param("payStatus") Integer payStatus);

    @Update("UPDATE shop_order_status set order_status = #{orderStatus} WHERE order_id = #{orderId}")
    int updateOrderStatusByOrderId(@Param("orderId") Long orderId, @Param("orderStatus") Integer orderStatus);
}
